class Campaigns::Appointment < ApplicationRecord
  belongs_to :member
  belongs_to :order, class_name: 'Campaigns::Order'
  enum status: [:canceled, :appointed, :absent, :signed, :suspended, :finished]
  ransacker :status, formatter: proc {|v| statuses[v]} do |parent|
    parent.table[:status]
  end
end
